import {Injectable} from "@angular/core";
import {Hero} from "./hero";
import {HEROES} from "./mock-heroes";
/**
 * Created by admin on 2017/1/5.
 */
@Injectable()
export class HeroService {

    getHeroes():Promise<Hero[]> {
        return Promise.resolve(HEROES);
    }

}